﻿namespace Smart.Utils.ExcelDataReader.Core
{
    using System;

    internal class XlsBiffBoolErrCell : XlsBiffBlankCell
    {
        internal XlsBiffBoolErrCell(byte[] bytes) : this(bytes, 0)
        {
        }

        internal XlsBiffBoolErrCell(byte[] bytes, uint offset) : base(bytes, offset)
        {
        }

        public FORMULAERROR ErrorCode
        {
            get
            {
                return (FORMULAERROR) base.ReadByte(6);
            }
        }

        public bool IsError
        {
            get
            {
                return (base.ReadByte(7) != 0);
            }
        }

        public bool Value
        {
            get
            {
                return (base.ReadByte(6) != 0);
            }
        }
    }
}

